/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.mzk.oai.metadataRepository.transformation;

import cz.mzk.oai.metadataRepository.metadata.MetadataFormat;
import org.dom4j.Document;

/**
 *
 * @author Martin Řehánek (rehan at mzk.cz)
 */
public interface SingleSourceTransformer {



    /**
     *
     * @param sourceDocument
     * @return new document in format getResultFormat() if it can be transformed
     * or null otherwise
     */
    public Document run(Document sourceDocument);

    public MetadataFormat getSourceFormat();

    public MetadataFormat getResultFormat();

}
